package com.opp.demo02;

public class Student {
    String name;
    int age;
    int weight;

    public void study(){
        System.out.println(this.name+"在学习");
    }
}
/*
public static void main(String[] args) {

        Student xiaoming = new Student();
        Student xiaohong = new Student();

        xiaoming.name="小明";
        xiaoming.age=10;

        System.out.println(xiaoming.name);
        System.out.println(xiaoming.age);

        xiaohong.name="小红";
        xiaohong.age=11;

        System.out.println(xiaohong.name);
        System.out.println(xiaohong.age);
    }
 */